import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    sessionId: sid ,// 打包到平台
    Company:[],
    Center:[],
    assetsName:'',
    CurrentAssets:{},
    isEND:0,
    active:0
      //sessionId: settingParam.sessionId, // 本地调试
  },
  mutations: {
    edit(state, data) {
      for (let p in data) {
        state[p] = data[p];
      }
    },
  },
  actions: { 
  },
  modules: { 
  }
})
